package com.ocean.productCheck.service.impl;

import com.ocean.common.core.text.Convert;
import com.ocean.productCheck.domain.OProductCheckMessage;
import com.ocean.productCheck.mapper.OProductCheckMessageMapper;
import com.ocean.productCheck.service.IOProductCheckMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author msy
 * @date 2023/2/17
 */
@Service
public class OProductCheckMessageServiceImpl implements IOProductCheckMessageService {

    @Autowired
    private OProductCheckMessageMapper oProductCheckMessageMapper;

    @Override
    public List<OProductCheckMessage> getFormList(OProductCheckMessage checkMessage) {
        return oProductCheckMessageMapper.selectOProductCheckMessageList(checkMessage);
    }
    @Override
    public List<OProductCheckMessage> getList(OProductCheckMessage productCheckMessage) {
        return oProductCheckMessageMapper.getList(productCheckMessage);
    }

    @Override
    public int save(OProductCheckMessage productCheckMessage) {
        return oProductCheckMessageMapper.insertOProductCheckMessage(productCheckMessage);
    }

    @Override
    public int updateOProductCheckMessage(OProductCheckMessage productCheckMessage) {
        return oProductCheckMessageMapper.updateOProductCheckMessage(productCheckMessage);
    }

    @Override
    public int deleteByIds(String ids) {
        return oProductCheckMessageMapper.deleteOProductCheckMessageByIds(Convert.toStrArray(ids));
    }

}
